﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Remoting.Channels;
using System.ServiceModel;
using System.Runtime.Serialization;
using Celeriq.Utilities;
using Celeriq.Common;

namespace Celeriq.Server.Core
{
	[Serializable]
	[DataContract]
	public class RemotingObjectCache : Celeriq.Client.Interfaces.BaseRemotingObject, Celeriq.Client.Interfaces.IRemotingObject
	{
		public RemotingObjectCache()
		{
		}

		internal ServiceHost Host { get; set; }
		internal Celeriq.Client.Interfaces.IRepositoryService ServiceInstance { get; set; }

		public bool GetIsLoaded()
		{
			if (this.ServiceInstance == null)
				return false;
			else
				return this.ServiceInstance.IsLoaded;
		}

	}
}
